//
//  CZconst.swift
//  sinaWeiboswift
//
//  Created by 段文杰 on 16/4/10.
//  Copyright © 2016年 段文杰. All rights reserved.
//

import UIKit
//  App Key：2891053448
//  App Secret：a33483bf4db07ae22dc02b62cdc996c6
// Swift只要不是在类里面的代码,全局都可以使用

/// ... 可变参数
/// 默认参数 file: String = __FILE__,如果不传入参数会使用 = 后面的作为参数
func HMPrint(items: Any, file: String = #file, line: Int = #line, function: String = #function) {
    #if DEBUG
        print((file as NSString).lastPathComponent + ",🎈[\(line)]行🎈,方法名称：" + function + "🎈输出: \(items)")
    #endif
}

  
// MARK: - 授权相关
/// 加载授权登录界面的url地址
let OauthUrl = "https://api.weibo.com/oauth2/authorize"

/// 请应用时分配的AppKey
let client_id = "110331672"
//let client_id = "1909808640"
/// 授权回调地址
let redirect_uri = "http://www.baidu.com/"
//let redirect_uri = "http://www.baidu.com"
/// 申请应用时分配的AppSecret
let client_secret = "d73955fa7b3209ad518253c6e58c573d"
//let client_secret = "82f67c37440b2305dec6836756625fb1"
/// 请求的类型
let grant_type = "authorization_code"

/// accessToken请求地址
let accessTokenURLString = "https://api.weibo.com/oauth2/access_token"

/// tabBar的数量
let HMMainTabBarButtonCount = 5

/// 账号归档和解档的路径
// 路径
let accountPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true).last!.stringByAppendingString("/account.plist")

/// 全局背景颜色
let GlobalBGColor = UIColor.whiteColor()


/// 欢迎界面label大小
let HMNewFeatureLabelFontSize: CGFloat = 18

/// 欢迎界面label大小
let HMWelcomeLabelFontSize: CGFloat = 14

/// 默认动画时长
let HMDefautlAnimDuration: NSTimeInterval = 0.25

/// 新特性界面数量
let NumberOfNewFeatureItem = 4

/// MARK - cell的常量
/// 用户名称大小
let HMStatusNameFontSize: CGFloat = 14

/// 时间文字大小
let HMStatusTimeFontSize: CGFloat = 11

/// 微博文字大小
let HMStatusContentFontSize: CGFloat = 15

/// 微博内容间距
let HMStatusCellMargin: CGFloat = 8

/// 微博头像大小
let HMStatusIconWH: CGFloat = 35


let margin: CGFloat = 4
let colum: Int  = 3
let scrrenW: CGFloat = UIScreen.mainScreen().bounds.size.width







